package com.hqyj.controller;


import com.hqyj.exception.R;
import com.hqyj.service.BrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author rock
 * @since 2023-03-06 02:50:09
 */
@RestController
@RequestMapping("/brand")
public class BrandController {


    @Autowired
    BrandService brandService;
    //查询商品类型下的所有品牌
    @GetMapping("/brand")
    public R query(Integer goodsTypeId){
        return brandService.queryBrandByType(goodsTypeId);
    }
}

